<?php 
	if (isset($_POST['CapNhat']))
	{
		$MaNhom = $_REQUEST['MaNhom'];
		$TenNhom = $_REQUEST['TenNhom'];
		include "connection.php";
		$sql="UPDATE nhomsanpham SET TenNhom='".$TenNhom."'
		WHERE MaNhom='" .$MaNhom."'";
		if (!mysql_query($sql))
		{
			die('Error: ' . mysql_error());
		}
		header("location:../MyModel/TrangAD_qlnhom.php");
		mysql_close($con);
	}
?>